home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Hyper / Q-R / RPN Calculator.cpt / RPN Calculator / card_6540.txt < prev    next >
Text File  |  1988-09-16  |  1KB  |  45 lines

  1. -- card: 6540 from stack: in
  2. -- bmap block id: 0
  3. -- flags: 4000
  4. -- background id: 2499
  5. -- name: Registers
  6. ----- HyperTalk script -----
  7. on openCard
  8.   put "Registers" into field "Title"
  9. end openCard
  10.  
  11.  
  12.  
  13. -- part 1 (button)
  14. -- low flags: 00
  15. -- high flags: 8003
  16. -- rect: left=439 top=321 right=339 bottom=487
  17. -- title width / last selected line: 0
  18. -- icon id / first selected line: 0 / 0
  19. -- text alignment: 1
  20. -- font id: 0
  21. -- text size: 12
  22. -- style flags: 0
  23. -- line height: 16
  24. -- part name: Next
  25. ----- HyperTalk script -----
  26. on mouseUp
  27.   go to next card
  28. end mouseUp
  29.  
  30.  
  31.  
  32. -- part contents for background part 1
  33. ----- text -----
  34. There are four working registers (x y z t) which are known as the stack, four general purpose memory registers, and one expanded register for displaying long values that are in the x register.  The working registers are in the rectangular field at the top left of the calculator.  The x register is on the bottom, and is the main entry register.  Above it are the y, z, and t registers.
  35.  
  36. The [Rup] key rolls the registers up (x->y, y->z, z->t, t->x).
  37.  
  38. The [Rdn] key rolls the registers down (t->z, z->y, y->x, x->t).
  39.  
  40. A function that uses registers x and y and puts a result into the x regis-ter, drops the stack (t->t, t->z, z->y), keeping the t register value in the t register.  Thus the t register value can be used as a constant.
  41.  
  42.  
  43. -- part contents for background part 6
  44. ----- text -----
  45. Registers